package indi.zhifa.engine.test.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.engine.core.common.entity.mpe.BaseEntity;

import indi.zhifa.engine.test.enums.EGender;
import indi.zhifa.engine.test.enums.EUserStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 织法
 * @since 2025-04-08
 */
@Data
@TableName("user")
@Schema(title = "GenUserEntity对象", description = "用户表")
public class GenUserEntity extends BaseEntity {

    @Schema(title = "用户名")
    private String userName;

    @Schema(title = "密码（加密的）")
    private String passwd;

    @Schema(title = "昵称")
    private String nickName;

    @Schema(title = "手机号")
    private String phone;

    @Schema(title = "邮箱")
    private String mail;

    @Schema(title = "部门Id")
    private Long curDepId;

    @Schema(title = "职位Id")
    private Long curPositionId;

    @Schema(title = "是否拥有部门")
    private Boolean hasDep;

    @Schema(title = "是否拥有职位")
    private Boolean hasPosition;

    @Schema(title = "该用户当前是哪个UI版本")
    private String curVersion;

    @Schema(title = "1、在职，2、离职")
    private EUserStatus status;

    @Schema(title = "性别")
    private EGender gender;

    @Schema(title = "老系统的用户名")
    private String oldUserName;

}
